<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 头部开始-->
<header >
    <div class="header common">
        <ul class="left fl">
            <li class="home commones"><a class="fl" href="<c:url value="/index.do"/>">再生网首页</a></li>
            <c:if test="${userInfo == null}">
                <li class="name">
                    欢迎您&nbsp;!&nbsp;&nbsp;
                    <a href="<c:url value="/toLogin.do"/>" class="selected-color">请登录</a>&nbsp;&nbsp;或&nbsp;&nbsp;
                    <a href="<c:url value="/toRegister.do"/>"><span class="selected-color">轻松注册</span></a>
                </li>
            </c:if>
            
            <c:if test="${userInfo != null}">
                <li class="name">
                    欢迎您&nbsp;!&nbsp;&nbsp;
                    <!--登录后显示请用户信息-->
                    <a href="#" class="selected-color">${userInfo.userName }</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="<c:url value="/logout.do"/>" class="selected-color">安全退出</a>
                </li>
            </c:if>
        </ul>
        
        <ul class="right fr">
            <li>
                <a href="#">买家中心</a><b class="icon"></b>
                <ul>
                    <li>
                        <a href="<c:url value="/buymanage/toPlatformbuy.do"/>">发布求购</a>
                    </li>
                    <li>
                        <a href="#">我的求购</a>
                    </li>
                    <li>
                        <a href="#">我的报价</a>
                    </li>
                    <li>
                        <a href="#">求购订单</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#">卖家中心</a><b class="icon"></b>
                <ul>
                    <li>
                        <a href="#">发布供应</a>
                    </li>
                    <li>
                        <a href="#">我的供应</a>
                    </li>
                    <li>
                        <a href="#">我的接单</a>
                    </li>
                    <li>
                        <a href="users/company-enter.html">供应订单</a>
                    </li>
                </ul>
            </li>
            <c:if test="${userInfo == null}">
                <li class="message">
                    <a href="#">消息</a><b class="icon"></b>
                </li>
            </c:if>
            
            <c:if test="${userInfo != null}">
                <li class="message">
                    <a href="#">消息（<span class="warn-color">10</span>）</a><b class="icon"></b>
                    <ul>
                        <li >
                            <a href="#"> 待支付保证金（<span class="warn-color">2</span>）</a>
                        </li>
                        <li >
                            <a href="#"> 待确认收货（<span class="warn-color">2</span>）</a>
                        </li>
                    </ul>
                </li>
            </c:if>
            
            <li class="service">
                <a href="#">在线客服</a><b class="icon"></b>
                <ul>
                    <li>
                        <span>在线客服:&nbsp;&nbsp;</span><a class="blue" href="#">联系在线客服</a>
                    </li>
                    <li>
                        <span>客服热线:&nbsp;&nbsp;</span>0<a href="#">521-3618888（8:30-17:30）</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</header>
<!-- 头部结束-->

    <nav class="nav">
        <div class="common">
            <div class="left fl logo"><img src="<c:url value="/static/img/logo.png"/>"></div>
            <div class="center fl">
                <ul class="fl" id="nav_main">
                    <li>
                        <a href="<c:url value="/index"/>">首页</a>
                    </li>
                    <li>
                        <a href="<c:url value="/toInformationList.do"/>">行情交易</a>
                    </li>
    
                    <li>
                        <a href="<c:url value="/toGoodsSupplyList.do"/>">现货交易</a>
                    </li>
                    <li>
                        <a href="<c:url value="/toSupplydemandList.do"/>">供求黄页</a>
                    </li>
                    <li>
                        <a href="<c:url value="/toTenderingtList.do"/>">招投标</a>
                    </li>
                    <li>
                        <a href="#">供应链金融</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
            <!--导航结束-->
